home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / ewl / ewl_config.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  1KB  |  52 lines

  1. #ifndef __EWL_CONFIG_H__
  2. #define __EWL_CONFIG_H__
  3.  
  4. /**
  5.  * @file ewl_config.h
  6.  * @defgroup Ewl_Config Config: Functions for Manipulating Configuration Data
  7.  *
  8.  * @{
  9.  */
  10.  
  11. typedef struct _ewl_config Ewl_Config;
  12.  
  13. struct _ewl_config
  14. {
  15.     time_t                  mtime;
  16.     struct {
  17.         int             enable;
  18.         int             level;
  19.         int         indent_lvl;
  20.     } debug;
  21.     struct {
  22.         int             font_cache;
  23.         int             image_cache;
  24.         char           *render_method;
  25.     } evas;
  26.     struct {
  27.         char           *name;
  28.         int             cache;
  29.         int             cclass_override;
  30.         int             print_keys;
  31.         int             print_signals;
  32.     } theme;
  33. };
  34.  
  35. extern Ewl_Config ewl_config;
  36.  
  37. int             ewl_config_init(void);
  38. void            ewl_config_shutdown(void);
  39. int             ewl_config_str_set(const char *k, char *v);
  40. int             ewl_config_int_set(const char *k, int v);
  41. int             ewl_config_float_set(const char *k, float v);
  42. char           *ewl_config_str_get(const char *k);
  43. int             ewl_config_int_get(const char *k);
  44. float           ewl_config_float_get(const char *k);
  45. char *          ewl_config_render_method_get(void);
  46.  
  47. /**
  48.  * @}
  49.  */
  50.  
  51. #endif                /* __EWL_CONFIG_H__ */
  52.